/**
 * Created by aa on 2016/8/19.
 */
/*兼容ie8开始*/
/*require('es5-shim');
require('es5-shim/es5-sham');
require('console-polyfill');*/
/*兼容ie8结束*/
var React=require('react');
var ReactDom=require('react-dom');
var Redux=require('redux');
var reactRedux=require('react-redux');
var thunk=require('redux-thunk');
var createStore=Redux.createStore;
var applyMiddleware=Redux.applyMiddleware;
var reducers=require('./reducers');
var HkfsProducts=require( './containers/pc/HkfsProducts.jsx');


//样式
require('stylesheets/ReTab.less');
require('stylesheets/HkfsProducts.less');
require('stylesheets/ReSlider.less');
require('stylesheets/ReBubbleBox.less');
require('stylesheets/HkfsProductDetailTab.less');
require('stylesheets/HkfsHomeProductTable/HomeProductContent.less');
require('stylesheets/ReProcessBar.less');
require('stylesheets/ReButton.less');
require('stylesheets/HkfsRaiseFundsTable.less');
require('stylesheets/pager.less');
require('stylesheets/ReSeachBox.less');
require('stylesheets/ReTableTitleOrder.less');

var initialState = window.__INITIAL_STATE__;
var createStoreWithMiddleware = applyMiddleware(thunk.default)(createStore);
var store = createStoreWithMiddleware(reducers, initialState);
var Provider=reactRedux.Provider;

//渲染头部底部公用模板
/*new RenderModel().intiModel();*/

ReactDom.render(
    <Provider store={store}>
        <HkfsProducts/>
    </Provider>,document.getElementById('root'));
